Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ListBase<T> Class / IndexOf Method / IndexOf(T,Int32,Int32) Method
The object to locate in the ListBase<T>.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.


In This Topic
    IndexOf(T,Int32,Int32) Method
    In This Topic
    Determines the index of a specific item in the ListBase<T>.
    Syntax
    'Declaration
     
    
    Public Overloads Function IndexOf( _
       ByVal item As T, _
       ByVal index As Integer, _
       ByVal count As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As ListBase(Of T)
    Dim item As T
    Dim index As Integer
    Dim count As Integer
    Dim value As Integer
     
    value = instance.IndexOf(item, index, count)
    public int IndexOf( 
       T item,
       int index,
       int count
    )

    Parameters

    item
    The object to locate in the ListBase<T>.
    index
    The zero-based starting index of the search. 0 (zero) is valid in an empty list.
    count
    The number of elements in the section to search.

    Return Value

    The index of item if found in the list; otherwise, -1.
    See Also